package com.hjj.springboot.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("t_logs")
@Data
@NoArgsConstructor
public class Logs {

    @ExcelProperty("日志编号")
    @ColumnWidth(20)
    private String id;

    @ExcelProperty("操作模块")
    @ColumnWidth(20)
    private String operation;

    @ExcelProperty("操作人员")
    @ColumnWidth(20)
    private String user;

    @ExcelProperty("IP地址")
    @ColumnWidth(20)
    private String ip;

    @ExcelProperty("操作类型")
    @ColumnWidth(20)
    private  String type;

    @ExcelProperty("操作时间")
    @ColumnWidth(20)
    @JsonSerialize(using=CustomDateTimeSerializer.class)
    private Date time ;


}
